#ifndef SUBJECT_H
#define SUBJECT_H

#include <QSharedPointer>
#include "data.h"
#include "observer.h"

/**
 * @brief The Subject class
 * 被观察者，这个类暂时没有用
 */
class Subject
{
public:
    virtual void addObserver(Observer* observerPtr) = 0;
    virtual void removeObserver(Observer* observerPtr) = 0;
    virtual void notify(QSharedPointer<Data> dataPtr) = 0;
};

#endif // SUBJECT_H
